#include "stdio.h"
#include "lw_oopc.h"
#include "ctrl.h"
#include "switch.h"

int main()
{
	CTRL* ctrl = (CTRL*)CTRLNew();
	DoorSwitch *psw = DoorSwitchNew();
	ctrl->init(ctrl);
	ctrl->turnOn(ctrl);
	psw->swDown();
	ctrl->turnOff(ctrl);
	psw->swUp();
	getchar();
	return 0;
}